VIF files

If you want to autoplay a movie from CD you must put file named ViPlay.vif in ViPlay's directory on that CD.

.vif files support relative pahts.

For eg. if ViPlay.exe is in %CDROM%\program\ViPlay directory, and movie is in %CDROM%\movie directory than path in Movie section should look like this:

Directory=..\..\movie


Section [Main]

NumberCDs=N

Optional
N=Total number of CDs

If movie is on more than 1 CD then at the end of movie, the player will automatically search for next CD.
It will do the following:
Search all CD-ROM drives for a .vif file that contains 'CD=CurrentCDNumber+1' line.
If .vif file is found it will read further info from that .vif file.
If it's not found then it will prompt for CD.
If movie was run from hard drive it will search for .vif file on hard drive first.

CD=N Optional if NumberCDs is present then Required
N=Number of current CD

 

Section [Movie]

Title=AML Movie

Optional
Movie title

Directory=path

Required
Directory where movie is located. Relative to .vif file.

If movie is in the same directory as .vif file put "." (dot) here.

For eg. Directory=.

File=AML.avi Required
Name of the movie file
AudioDirectory=path Optional
Directory where external audio is located. If not exists uses Movie directory.

For eg. AudioDirectory=.

AudioCount=N

AudioFile1=SoundFile1.wav

AudioFileN=SoundFileN.mp3

Optional
Load additional audio streams.
N=Total number of additional audio streams

For eg.:
AudioCount=2
AudioFile1=SoundFile1.mp3
AudioFile2=SoundFile2.wav

AudioStream=a,b Optional
Default audio stream

First value (a) can be: -1 = Play All, 0 = None, 1..x = Stream
Second value (b) can be: 0 = Internal, 1 = External

For eg. AudioStream=1,0

 

Section [Subtitles]

Directory=path

Optional
Directory where subtitles are located

Count=N Optional
N=number of subtitle files
File1=English|MyEnglish.sub
File2=EspaƱol|MySpanish.vsf

Optional
Subtitles.

Syntax: Subtitle language|SubtitleFile.sub

Font1=Name,Charset,Size,Style
Font2=Name,Charset,Size,Style

Optional
Subtitle font.

Font1 is definition of font for subtitle File1, etc.

Syntax:
Name: Name of font to be used to show subtitle.
Charset: Charset for subtitle. See /Docs/Charsets.txt.
Style:
1 = Bold
2 = Italic
4 = Underline
8 = StrikeOut
16 = Border
32 = Shadow

For eg.: Font=Tahoma,0,24,17 ("17" Bold+Border)

Colors=color,border,shaddow,background

Position=N
Optional
Subtitle colors and position.

Colors format are in decimals or in reversed RGB ($BBGGRR)
For example the Blue color:
In decimals is: 16711680.
In reversed hex is: $FF0000.

Colors=$FF0000,$00FF00,$0000FF,$FF00FF

Note that In hex (BGR) you always have to put the $ first.

Position=N (where N is number from 1 to 100).

This lines are auto generated just press F10 in player and you will be prompted for name and location of .vif file.
Visible=0|1 Optional
Subtitles: 0=off; 1=on
Delay=N Optional
N=Subtitle delay in milicesonds
Default=N

Optional
Defines subtitle that will be shown at start.

N=number of default subtitle

StartTime=HH:MM:SS

Optional
Time to start displaying subtitles.

Syntax: HH:MM:SS=Hours:Minutes:Seconds

For eg.:
StartTime=01:05:20

Note:
Subtitle file should be the same on all CDs, you don't have to cut it.
ViPlay will display subtitles synchronized without this option too. It's usefull if you start watching movie from 2nd (or 3rd...) CD.

 

Section [ChaptersN] -> N=CD number

Count=N

Optional
Number of chapters on this CD.

N=number of chapters

1=00:00:10 Chapter 1
2=00:00:50 Chapter 2
3=00:01:25 Chapter 3
etc...

Optional
Syntax is: HH:MM:SS Chapter name

StartTime=HH:MM:SS

Optional
If movie is on 2 or more CDs this is time where chapters begin on other CDs.

For eg.:

movie 2 hours long on 2 CDs, each CD is one hour.

[Chapters1]
Count=3
1=00:00:10 Chapter 1
2=00:00:50 Chpater 2
3=00:01:25 Chapter 3

[Chapters2]
Count=3
1=01:02:50 Chapter 4
2=01:03:05 Chpater 5
3=01:03:35 Chapter 6
StartTime=01:00:00

If chapters for all CDs are in .vif file then all chapters will be displayed and player will ask for right CD if you choose chapter that is not on current CD.
If you want that only chapters from current CD are visible then .vif for each CD should have only chapters for this CD.
For eg. cd1.vif should only have section [Chapters1], CD2 -> [Chapters2] etc...

Note: If chapters on all CDs start form 0 then you don't need this option.

For eg.:

[Chapters1]
Count=2
1=00:01:00 Chapter 1
2=00:08:22 Chapter 2

[Chapters2]
Count=2
1=00:01:10 Chapter 1
2=00:09:11 Chapter 2

 

Section [Options]

Main=0|1

Optional
Main window: 0=off; 1=on

Playlist=0|1 Optional
Playlist window: 0=off; 1=on
Video=x,y,w,h Optional
Sets the video window size and position.

If you put -1 in x and/or y is x and/or y centered.
If you put -1 in w and/or h is original w and/or h size.

For eg.: Video=-1,-1,320,240
Fullscreen=0|1 Optional
Full screen mode: 0=off; 1=on
DigitalZoom=x,y

Optional
Sets the digital zoom.

Values are from -75 to 100.

For eg.: DigitalZoom=25,-10

Offset=x,y

Optional
Sets the video offset inside the video window.

Values are from -300 to 300.

For eg.: Offset=5,10

Aspect=x:y Optional
Aspect ratio.

For eg.: Aspect=16:9
Playrate=p Optional
Sets the movie playback rate (percentage).

Values are: 50, 75, 100, 125, 150, 175 and 200.

For eg.: Playrate=175
Volume=N N=(0 to 100)
Balance=N N=(-100 to 100)
Balance=0 for center.
Res=XxYxZ Optional
X=Width, Y=Height, Z=Color depth
For eg.: Res=1024x768x16

 

Notes:

For movies on more than one CD, subtitle file on all CDs must be the same. File name doesn't matter, only actual subtitle.